package com.liu.pay.feign.api;

import com.liu.pay.vo.OrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "shop-order",path = "/order")
public interface OrderService {

    @GetMapping("/getOrderById/{orderId}")
    public OrderVo getOrderById(@PathVariable("orderId") String orderId);

    @GetMapping("/updateOrderStatus")
    void updateOrderStatus(@RequestParam("orderId") String orderId, @RequestParam("status") Integer status);
}
